﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/TravelIndex.master" CodeBehind="SolicitudServicios2.aspx.vb" Inherits="CondorTravel.SolicitudServicios2" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit.HTMLEditor" TagPrefix="cc1" %>    

<asp:Content ID="Content1" ContentPlaceHolderID="contenidoModulo" runat="server">
    <div id="titulo">Solicitud de Servicios</div>
    
<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
</asp:ToolkitScriptManager>

<form name="frmConsultarServicios" method="post" id="frmConsultarServicios">

<p>En esta sección Ud. podrá buscar las solicitudes que actuales existentes.</p>
	
	<table style="WIDTH: 70%" cellspacing="0" cellpadding="0" border="0">
	<tbody>
		<tr class="TRlist3">
			<td colspan="6">&nbsp;</td>
		</tr>
		<tr class="TRlist3">
			<td style="HEIGHT: 16px;width: 160px">Usuario</td>
			<td colspan="3">
				<asp:DropDownList ID="cboUsuarios" runat="server" Height="16px" Width="220px">
                </asp:DropDownList>
            </td>
			<td style="HEIGHT: 16px; width: 219px" align="right">&nbsp;</td>
            <td style="HEIGHT: 16px">
				&nbsp;</td>
		</tr>		
		<tr class="TRlist3">
			<td style="HEIGHT: 16px;width: 160px">Descripción Servicio</td>
			<td colspan="3">
                <asp:TextBox ID="txtDesServicio" runat="server" Width="259px" MaxLength="50"></asp:TextBox>
            </td>
			<td style="HEIGHT: 16px; width: 219px" align="right">&nbsp;</td>
            <td style="HEIGHT: 16px">
				&nbsp;</td>
		</tr>		
		<tr class="TRlist3">
			<td colspan="4" bgcolor="#999999" style="font-weight: bold">Fecha Creacion</td>
			<td style="width: 219px">&nbsp;</td>
            <td>
                &nbsp;</td>
		</tr>		
		<tr class="TRlist3">
			<td style="WIDTH: 160px">&nbsp;Desde</td>
			<td>                
                <asp:TextBox ID="txtInicio" runat="server"></asp:TextBox>
                 <asp:CalendarExtender ID="cle1" 
                TargetControlID="txtInicio" runat="server" Format="dd/MM/yyyy"  StartDate="01/01/2000" >
                </asp:CalendarExtender>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                    ControlToValidate="txtInicio" ErrorMessage="Fecha inválida" ForeColor="#FF3300" 
                    ValidationExpression="(0[1-9]|[12][0-9]|3[01])[- /.](0[1-9]|1[012])[- /.](19|20)\d\d">
                    </asp:RegularExpressionValidator>
&nbsp;                
            </td>
			<td>                
                Hasta</td>
			<td style="WIDTH: 202px">                
                <asp:TextBox ID="txtFin" runat="server"></asp:TextBox>
                 <asp:CalendarExtender ID="cle2" 
                TargetControlID="txtFin" runat="server" Format="dd/MM/yyyy"  StartDate="01/01/2000" >
                </asp:CalendarExtender>
                          <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                    ControlToValidate="txtFin" ErrorMessage="Fecha inválida" ForeColor="#FF3300" 
                    ValidationExpression="(0[1-9]|[12][0-9]|3[01])[- /.](0[1-9]|1[012])[- /.](19|20)\d\d">
                    </asp:RegularExpressionValidator>
            </td>
			<td align="right" style="width: 219px">&nbsp;</td>
            <td>
&nbsp;                
            </td>
		</tr>		
		<tr class="TRlist3">
			<td style="WIDTH: 160px">&nbsp;</td>
			<td colspan="3">                
                &nbsp;</td>
			<td style="width: 219px">&nbsp;</td>
            <td>
                &nbsp;</td>
		</tr>		
		<tr>
			<td style="WIDTH: 160px; HEIGHT: 30px"></td>
			<td style="WIDTH: 270px; HEIGHT: 30px" colspan="2">&nbsp;&nbsp;&nbsp;				
                  <asp:Button ID="btnNuevo" class="graybutton" runat="server" Text="Nuevo" Width="79px" />
            </td>
			<td style="WIDTH: 202px; HEIGHT: 30px">
                <asp:Button ID="btnConsultar" class="graybutton" runat="server" Text="Consultar" Width="70px" />
            </td>
			<td style="HEIGHT: 30px; width: 219px;">
                  <asp:Button ID="btnLimpiar" class="graybutton" runat="server" Text="Limpiar" 
                    Width="79px" />
            </td>
			<td style="HEIGHT: 30px">
				&nbsp;</td>
		</tr>
		
		<tr>
			<td style="WIDTH: 160px; HEIGHT: 30px">
                <asp:Label ID="lblListado" runat="server" Font-Bold="True" ForeColor="#FF3300" 
                    Text="Listado de Solicitudes" Visible="False"></asp:Label>
            </td>
			<td style="HEIGHT: 30px" colspan="3">&nbsp;</td>
			<td style="HEIGHT: 30px; width: 219px;">
                &nbsp;</td>
			<td style="HEIGHT: 30px">
				&nbsp;</td>
		</tr>
		
		<tr>
			<td style="HEIGHT: 30px" colspan="6">
    <asp:GridView ID="dgSolicitudServicio" runat="server" 
        AutoGenerateColumns="False" Width="780px">
        <Columns>
            <asp:BoundField DataField="CodSolicitud" HeaderText="Código" >
            <HeaderStyle Width="10px" />
            </asp:BoundField>
            <asp:BoundField DataField="NombreServicio" HeaderText="Servicio" >
            <FooterStyle Width="150px" />
            <HeaderStyle Width="150px" />
            </asp:BoundField>
            <asp:BoundField HeaderText="Unidad" DataField="Unidad" />
            <asp:BoundField DataField="Observaciones" HeaderText="Observación" 
                Visible="False" />
            <asp:BoundField DataField="UsuarioCreador" HeaderText="Usuario" />
            <asp:BoundField DataField="Estado" HeaderText="Estado" />
            <asp:TemplateField HeaderText="Editar">
                <ItemTemplate>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                         <asp:ImageButton ID="ImagenEditar1" runat="server" 
                        CommandArgument='<%#Eval("CodSolicitud")%>' 
                        CommandName="Editar" Height="19px" ImageUrl="~/res/img/icono_editar.gif" 
                        Width="16px" />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Evaluar">
                <ItemTemplate>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                         <asp:ImageButton ID="ImagenenEvaluar" runat="server" 
                        CommandArgument='<%#Eval("CodSolicitud")%>' 
                        CommandName="Evaluar" Height="19px" ImageUrl="~/res/img/icono_editar.gif" 
                        Width="16px" />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Eliminar">
                <ItemTemplate>
                    &nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:ImageButton ID="imgEliminar" runat="server" 
                        CommandArgument='<%#Eval("CodSolicitud")%>' 
                        CommandName="Eliminar" Height="19px" ImageUrl="~/res/img/icono_eliminar.gif" 
                        Width="16px" />
                    <asp:ConfirmButtonExtender TargetControlID="imgEliminar" ID="confBtnDelete"  
                        ConfirmText="¿Esta seguro que desea eliminar?" runat="server">
                    </asp:ConfirmButtonExtender>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
            </td>
		</tr>
		
	</tbody>
	</table>
	<span id="lblError" class="lblError"></span>
<p>
         <asp:Label ID="lblError" runat="server" Font-Bold="True" ForeColor="#FF3300" 
             Text="No existe información a mostrar" Visible="False"></asp:Label>
      </p>
</form>
</asp:Content>
